package JLB_Chapter_06;

public class MultiTest {
    public static void main(String[] args) {
        MultiTest multi = new MultiTest();
        System.out.println(multi.add(1,2,3,4,5,6,7));
    }
    int add(int...x) {
        int result = 0;
        for(int i = 0; i < x.length; i++) {
            result += x[i];
        }
        return result;
    }
}
